package com.dg.dao;

import com.dg.common.PageQuery;
import com.dg.pojo.Acl;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AclMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Acl record);

    int insertSelective(Acl record);

    Acl selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Acl record);

    int updateByPrimaryKey(Acl record);

    int countByModuleId(@Param("aclModuleId") Integer aclModuleId);

    int findByName(@Param("id") Integer id, @Param("aclModuleId") Integer aclModuleId, @Param("name") String name);

    List<Acl> list(@Param("aclModuleId") Integer aclModuleId,@Param("pageQuery") PageQuery pageQuery);

    List<Acl> getAll();

    List<Acl> getAclByAclIdList(@Param("aclIdList") List<Integer> aclIdList);
}